/**
 * 
 */
package com.teach.servlet.admin;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.teach.entity.User;
import com.teach.service.UserSelectLikeService;
import com.teach.service.impl.UserSelectLikeServiceImpl;

/**
 * @author Liulianqiu
 *2020年8月2日
 */
@WebServlet("/admin/selectLike-user.let")
public class UserSelectLikeServlet extends HttpServlet {

	UserSelectLikeService userSelectLike = new UserSelectLikeServiceImpl();
	@Override
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		
		List<User> list = userSelectLike.selectLike(request.getParameter("search"));
		request.setAttribute("list", list);
		request.getRequestDispatcher("/admin/table.jsp").forward(request, response);
	}
}
